    package itheima.com.Properties;

    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;

    public class Properties_03 {

        public static void main(String[] args) throws IOException {

            Properties properties = new Properties();
            properties.setProperty("charset","utf-8");
            properties.setProperty("user","汤姆");
            properties.setProperty("password","123456");

            properties.store(new FileOutputStream("src\\mysql.properties01"),"xiaojunfeng");
            System.out.println("保存配置成功~");

        }

    }
